home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 …ember: Reference Library / Dev.CD Dec 00 RL Disk 1.toast / pc / technical documentation / develop / develop issue 26 / develop issue 26 code / truffles - display mgr. / superfly source / superflytoolwindow.h < prev   
Encoding:
C/C++ Source or Header  |  1996-06-13  |  1.1 KB  |  59 lines

  1. /*
  2.     File:        SuperFlyToolWindow.h
  3.  
  4.     Contains:    A window that displays information about a GDevice
  5.                 
  6.     Written by: Kent Miller
  7.     
  8.     Copyright:    © 1996 Apple Computer
  9.  
  10.     Change History (most recent first):
  11.  
  12.  */
  13.  
  14.  
  15. #ifndef        _SUPERFLYTOOLWINDOW_
  16. #define        _SUPERFLYTOOLWINDOW_
  17.  
  18. #ifndef        _WINDOW_
  19. #include    "Window.h"
  20. #endif
  21.  
  22. #ifndef        _DISPLAYS_
  23. #include    <Displays.h>
  24. #endif
  25.  
  26. #define        kIconBase        2048
  27. #define        kNumIcons        6
  28. #define     kToolButtonSize 64
  29. #define     kNamesID        129
  30. #define     PinAtZero(x) (x<0)? 0:x;
  31.  
  32. class    TSuperFlyToolWindow    :    public TWindow
  33.     {
  34. protected:
  35. public:
  36.                             TSuperFlyToolWindow();
  37.     virtual                 ~TSuperFlyToolWindow();
  38.  
  39. //Overridden methods
  40.     virtual void            Drag(Point startPoint);
  41.  
  42.     virtual WindowPtr        MakeNewWindow(WindowPtr behindWindow);
  43.     virtual void            Draw(void);
  44.     virtual void            Click(EventRecord * anEvent);
  45.     virtual    Boolean            Close();
  46.  
  47. //New methonds
  48.     void                    CalculateRelativePosition(void);
  49.     void                    MoveToRelativePosition(void);
  50.  
  51. private:
  52.     Rect                oldScreenRect;
  53.     Rect                myStrucRect;
  54.     DisplayIDType        theID;  //Even though GDHandles might change, the Display Manager
  55.     };
  56.  
  57.  
  58. #endif
  59.